<%= form_tag(decidim.search_path, method: :get, id: "form-search_topbar") do %>
  <button type="submit" aria-label="<%= t("decidim.search.term_input_placeholder") %>">
    <%= icon "search-line" %>
  </button>
  <%= text_field_tag(
    :term,
    nil,
    id: "input-search",
    class: "reset-defaults",
    value: params[:term] || params.dig(:filter, :term),
    placeholder: t("decidim.search.term_input_placeholder"),
    title: t("decidim.search.term_input_placeholder"),
    "aria-label": t("decidim.search.term_input_placeholder")
  ) %>
<% end %>
